<template>
  <w-oss-img :prefix="prefix" :search-bar="searchBar" bucket="ybweb">
    <a-tabs v-model="navData" defaultActiveKey="new">
      <a-tab-pane tab="新数据" key="new"></a-tab-pane>
      <a-tab-pane tab="旧数据" key="old"></a-tab-pane>
    </a-tabs>
  </w-oss-img>
</template>

<script>
import WOssImg from '@/components/global/ossImages'
export default {
  name: 'AdminServerOss',
  layout: 'admin',
  components: {
    WOssImg
  },
  data () {
    return {
      navData: 'new',
      lastKey: null
    }
  },
  computed: {
    /**
     * 查找的前缀
     */
    prefix () {
      return this.navData === 'new' ? 'images/OSS_web_' : 'images/OSS_153'
    },
    /**
     * 是否显示收索框
     */
    searchBar () {
      return this.navData === 'new'
    }
  },
  head () {
    return {
      title: '阿里云对象存储'
    }
  }
}
</script>

<style scoped></style>
